//
//  TouchHandler.h
//  PortmanTouch
// 
//  this class recieves touch events from somewhere,, right now, it's from the GestureWindow..
//  this handles creating/deleting TouchGestures, and adding points to the appropriate gesture.
// 
//
//  Created by cclaan on 11/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES1/gl.h>

#import "GestureRecognizer.h"

@interface TouchHandler : NSObject {

	float * touchPoints;
	int pointIndex;
	UIView * parentView;
	
	NSMutableArray * gestures;
	
	GestureRecognizer * recognizer;
	
}
@property (nonatomic,assign)UIView * parentView;

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;

//handles cancels and end
-(void) endTouches:(NSSet *) touches withEvent:(UIEvent*) event;

-(void) render;


@end
